package com.example.file.mail;

import javax.mail.MessagingException;
import javax.mail.internet.AddressException;

public class Mail {
    public static final String HOST = "smtp.163.com";     // smtp服务器
    public static final String USER = "gstian_love@163.com";     // 用户名--就是邮箱地址@之前的部分
    public static final String PASSWORD = "BIEMMNKCGXZFQPJE";      // 密码--邮箱密码
    public static final String FROM = "gstian_love@163.com";     // 发件人地址
    private String to = "";       // 收件人地址
    private String subject = "";  // 邮件标题
    private String comment = "";       // 邮件内容
    private String affixUrl = "";      // 附件绝对路径
    private String toOther = "";        //抄送

    /**
     * 发送邮件
     */
    public static void SendMail(Mail mail) throws AddressException, MessagingException {
        SendMessageMail.send(mail);
    }

    public static String getHOST() {
        return HOST;
    }

    public static String getUSER() {
        return USER;
    }

    public static String getPASSWORD() {
        return PASSWORD;
    }

    public static String getFROM() {
        return FROM;
    }

    public String getTo() {
        return to;
    }

    public void setTo(String to) {
        this.to = to;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getAffixUrl() {
        return affixUrl;
    }

    public void setAffixUrl(String affixUrl) {
        this.affixUrl = affixUrl;
    }

    public String getToOther() {
        return toOther;
    }

    public void setToOther(String toOther) {
        this.toOther = toOther;
    }
}